package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchWaterQualityIndicatorAbnormalRatioStatsMapper;
import com.ruoyi.system.domain.DispatchWaterQualityIndicatorAbnormalRatioStats;
import com.ruoyi.system.service.IDispatchWaterQualityIndicatorAbnormalRatioStatsService;

/**
 * 水质指标异常占比统计Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchWaterQualityIndicatorAbnormalRatioStatsServiceImpl implements IDispatchWaterQualityIndicatorAbnormalRatioStatsService 
{
    @Autowired
    private DispatchWaterQualityIndicatorAbnormalRatioStatsMapper dispatchWaterQualityIndicatorAbnormalRatioStatsMapper;

    /**
     * 查询水质指标异常占比统计
     * 
     * @param waterQualityIndicatorAbnormalRatioStatsId 水质指标异常占比统计主键
     * @return 水质指标异常占比统计
     */
    @Override
    public DispatchWaterQualityIndicatorAbnormalRatioStats selectDispatchWaterQualityIndicatorAbnormalRatioStatsByWaterQualityIndicatorAbnormalRatioStatsId(Long waterQualityIndicatorAbnormalRatioStatsId)
    {
        return dispatchWaterQualityIndicatorAbnormalRatioStatsMapper.selectDispatchWaterQualityIndicatorAbnormalRatioStatsByWaterQualityIndicatorAbnormalRatioStatsId(waterQualityIndicatorAbnormalRatioStatsId);
    }

    /**
     * 查询水质指标异常占比统计列表
     * 
     * @param dispatchWaterQualityIndicatorAbnormalRatioStats 水质指标异常占比统计
     * @return 水质指标异常占比统计
     */
    @Override
    public List<DispatchWaterQualityIndicatorAbnormalRatioStats> selectDispatchWaterQualityIndicatorAbnormalRatioStatsList(DispatchWaterQualityIndicatorAbnormalRatioStats dispatchWaterQualityIndicatorAbnormalRatioStats)
    {
        return dispatchWaterQualityIndicatorAbnormalRatioStatsMapper.selectDispatchWaterQualityIndicatorAbnormalRatioStatsList(dispatchWaterQualityIndicatorAbnormalRatioStats);
    }

    /**
     * 新增水质指标异常占比统计
     * 
     * @param dispatchWaterQualityIndicatorAbnormalRatioStats 水质指标异常占比统计
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchWaterQualityIndicatorAbnormalRatioStats(DispatchWaterQualityIndicatorAbnormalRatioStats dispatchWaterQualityIndicatorAbnormalRatioStats)
    {
        return dispatchWaterQualityIndicatorAbnormalRatioStatsMapper.insertDispatchWaterQualityIndicatorAbnormalRatioStats(dispatchWaterQualityIndicatorAbnormalRatioStats);
    }

    /**
     * 修改水质指标异常占比统计
     * 
     * @param dispatchWaterQualityIndicatorAbnormalRatioStats 水质指标异常占比统计
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchWaterQualityIndicatorAbnormalRatioStats(DispatchWaterQualityIndicatorAbnormalRatioStats dispatchWaterQualityIndicatorAbnormalRatioStats)
    {
        return dispatchWaterQualityIndicatorAbnormalRatioStatsMapper.updateDispatchWaterQualityIndicatorAbnormalRatioStats(dispatchWaterQualityIndicatorAbnormalRatioStats);
    }

    /**
     * 批量删除水质指标异常占比统计
     * 
     * @param waterQualityIndicatorAbnormalRatioStatsIds 需要删除的水质指标异常占比统计主键
     * @return 结果
     */
    @Override
    public int deleteDispatchWaterQualityIndicatorAbnormalRatioStatsByWaterQualityIndicatorAbnormalRatioStatsIds(Long[] waterQualityIndicatorAbnormalRatioStatsIds)
    {
        return dispatchWaterQualityIndicatorAbnormalRatioStatsMapper.deleteDispatchWaterQualityIndicatorAbnormalRatioStatsByWaterQualityIndicatorAbnormalRatioStatsIds(waterQualityIndicatorAbnormalRatioStatsIds);
    }

    /**
     * 删除水质指标异常占比统计信息
     * 
     * @param waterQualityIndicatorAbnormalRatioStatsId 水质指标异常占比统计主键
     * @return 结果
     */
    @Override
    public int deleteDispatchWaterQualityIndicatorAbnormalRatioStatsByWaterQualityIndicatorAbnormalRatioStatsId(Long waterQualityIndicatorAbnormalRatioStatsId)
    {
        return dispatchWaterQualityIndicatorAbnormalRatioStatsMapper.deleteDispatchWaterQualityIndicatorAbnormalRatioStatsByWaterQualityIndicatorAbnormalRatioStatsId(waterQualityIndicatorAbnormalRatioStatsId);
    }
}
